package com.ruoyi.web.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.serializer.BigDecimalToPlainStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户资金账户对象 user_capital
 *
 * @author ruoyi
 * @date 2022-12-30
 */
@Data
public class UserCapital {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 余额
     */
    @Excel(name = "余额")
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal balance;

    /**
     * 币种
     */
    @Excel(name = "币种")
    private String currency;

    /**
     * 注册时间
     */
    @Excel(name = "注册时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间")
    private LocalDateTime updateTime;

    /**
     * vip押金
     */
    @Excel(name = "vip押金")
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal vipDeposit;
}
